Loading...
 
Skip to main content

Tracker attachment field

 Use tracker field file instead
While this option is not deprecated or candidate for removal the functionality wasn't updated since a while (the introduction of the tracker field file?). We strongly advised to use instead the https://doc.tiki.org/Files-Tracker-Field" class="wiki wikinew text-danger tips">tracker field file for better performance, customisation and more options.

This field allows you to add directly an attached file from the item input form (tiki-view_tracker.php or tiki-view_tracker_item.php) or from the TRACKER plugin.

The user will be prompted to browse and select a file. when the item is saved, the file is put in the tracker attachments. When the user views an item with such field, he will see an icon to download the file. When a user edits an item where he is the owner of the attachment, he can browse and upload another file or delete the file if he is the owner.

What it can look like in a input view:
Image

What it can look like in a tracker list:
Image

Parameters
listviewn or t or s or m or nt ... or ntsTo display before the download button some information like filename or type or size(use nts to display name+size+type). Be careful, this option will cost a query to the database for each attachment and can slow down terribly the performancetw>=1.10. m (tw>=4.0 will display the mediaplayer plugin on the attachement

Url

To download an attachment with an url, use

  • tiki-download_item_attachment.php?attId=1 (replace 1 with the attachment ID)
  • tiki-download_item_attachment.php?itemId=1&fieldId=2 (replace 1 with the itemId and 2 with the fieldId)

Configuration

  • the tracker must use attachments
  • the user must have the permission to attach files tiki_p_attach_trackers